import QtQuick 2.15
import QtQuick.Controls 2.15

ApplicationWindow {
	visible: true
	width: 400
	height: 400
	
	Image {
		id: imageElement
		anchors.centerIn: parent
		source: "/resources/img/no_exists" // 假设这个文件不存在
		onStatusChanged: {
			if (status === Image.Error) {
				console.log("Error loading image")
			} else if (status === Image.Ready) {
				console.log("Image loaded successfully")
			}
		}
	}
}
